export default class CustomController {
  constructor($scope, CustomService) {
    this.title = 'customTitle';
    $scope.name = CustomService.getName();
    console.log($scope.name)
  }
}

CustomController.$inject = ['$scope','CustomService'];